package com.mall.service.region;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mall.client.region.CityService;
import com.mall.custom.dao.read.CityReadMapper;
import com.mall.pojo.City;
import com.mall.pojo.CityExample;
@Service
public class CityServiceImple implements CityService {

	@Autowired
	private CityReadMapper cityReadMapper;
	@Override
	public City getCityById(Integer cityId) {
		return this.cityReadMapper.selectByPrimaryKey(cityId);
	}
	@Override
	public List<City> getCityListByExample(CityExample example) {
		return this.cityReadMapper.selectByExample(example);
	}

}
